package com.umpay.entity;

/*******************************************************************
 * description : 交易表
 * @author liuhaidong
 * @date 2018年1月30日 下午9:18:56
 * @version 1.0
 *******************************************************************/
public class Trans extends BaseEntity
{
    
    private static final long serialVersionUID = 1L;
    //表名前缀
    public static final String TABLENAME_PREFIX = "T_TRANS_";
    
    
	@Override
	public String getTableNamePrefix() {
		return TABLENAME_PREFIX;
	}

	
    /***主订单状态*/
	/*** -99-初始*/
	public static final short TRANSTATE_99 = -99; 
	/*** 0-交易成功*/
	public static final short TRANSTATE_0 = 0; 
	/*** 1-交易失败*/
	public static final short TRANSTATE_1 = 1; 
	
	
	private String trace;	//机构流水
	private String instId;	//机构号
	private String platDate;	//交易日期
	private String platTime;	//交易时间
	private String funCode;	//交易代码
	private String busiId;	//业务类型
	private String tradeNo;	//订单号（平台）
	private String oriTrace;	//原机构流水
	private String oriInstId;	//原机构号
	private String orderId;	//订单编号
	private String orderDate;	//订单日期
	private String merId;	//商户号
	private String inAccount;	//收款方帐号
	private Short inAccountPro;	//收款方账户类型
	private String inAccountName;	//收款方户名
	private String inMediaId;	//收款方标识
	private Short inMediaType;	//收款方标识类型
	private String outAccount;	//付款方帐号
	private Short outAccountPro;	//付款方子账户类型
	private String outAccountName;	//付款方户名
	private String outMediaId;	//付款方标识
	private Short outMediaType;	//付款方标识类型
	private String bankId;	//银行编号
	private String paySeq;	//银行请求流水
	private String stlDate;	//对账日期
	private Short stlCheck; //支付网关对账状态
	private String accCheckDate;	//账户账期
	private Long origAmt;	//原始金额
	private Long amount;	    //交易金额
	private Long comAmt;	    //手续费
	private String amtType;	//金额类型
	private Short payType;	//支付类型
	private Short tranState;	//交易状态
	private String transCode;	//交易返回码
	private String transDesc;	//交易返回描述
	private String merCheckDate;	//商户对账日期
	private Short merCheck;	    //商户清算标识
	private String pproductId;	//产品编号
	private String bproductId;	//业务产品号
	private String accountSeq;	//账户流水
	private Short comAmtType;	//手续费类型
	private String merTrace;    //商户流水号
	private String remark;    //备注信息
	private String notifyUrl;    //通知地址	
	private String retUrl;
	private String oriMerTrace;
	private Short accessType;    //	接入方式
	private String accessName;    //	接入方式名称
	private String depBankMerId	;    //银行商户号			
	private String depBankSeq;    //	银行流水
	private Short depBankTradeState;    //	银行状态
	private String depBankCheckDate;    //	银行日期
	private String depBankCheckTime;    //	银行时间
	private String depBankRetCode;    //	银行返回码	
	private String depBankRetMsg;    //	银行返回描述
	protected String preTableName;	//上一月表名
	protected String latterTableName;	//下一月表名
	private String []inQryTransStates;
	
	public String getPreTableName() {
		return preTableName;
	}
	public void setPreTableName(String preTableName) {
		this.preTableName = preTableName;
	}
	public String getLatterTableName() {
		return latterTableName;
	}
	public void setLatterTableName(String latterTableName) {
		this.latterTableName = latterTableName;
	}
	public String[] getInQryTransStates() {
		return inQryTransStates;
	}
	public void setInQryTransStates(String[] strings) {
		this.inQryTransStates = strings;
	}
	public String getTrace() {
		return trace;
	}
	public void setTrace(String trace) {
		this.trace = trace;
	}
	public String getInstId() {
		return instId;
	}
	public void setInstId(String instId) {
		this.instId = instId;
	}
	public String getPlatDate() {
		return platDate;
	}
	public void setPlatDate(String platDate) {
		this.platDate = platDate;
	}
	public String getPlatTime() {
		return platTime;
	}
	public void setPlatTime(String platTime) {
		this.platTime = platTime;
	}
	public String getFunCode() {
		return funCode;
	}
	public void setFunCode(String funCode) {
		this.funCode = funCode;
	}
	public String getBusiId() {
		return busiId;
	}
	public void setBusiId(String busiId) {
		this.busiId = busiId;
	}
	public String getTradeNo() {
		return tradeNo;
	}
	public void setTradeNo(String tradeNo) {
		this.tradeNo = tradeNo;
	}
	public String getOriTrace() {
		return oriTrace;
	}
	public void setOriTrace(String oriTrace) {
		this.oriTrace = oriTrace;
	}
	public String getOriInstId() {
		return oriInstId;
	}
	public void setOriInstId(String oriInstId) {
		this.oriInstId = oriInstId;
	}
	public String getOriInstid() {
		return oriInstId;
	}
	public void setOriInstid(String oriInstId) {
		this.oriInstId = oriInstId;
	}
	public String getOrderId() {
		return orderId;
	}
	public void setOrderId(String orderId) {
		this.orderId = orderId;
	}
	public String getOrderDate() {
		return orderDate;
	}
	public void setOrderDate(String orderDate) {
		this.orderDate = orderDate;
	}
	public String getMerId() {
		return merId;
	}
	public void setMerId(String merId) {
		this.merId = merId;
	}
	public String getInAccount() {
		return inAccount;
	}
	public void setInAccount(String inAccount) {
		this.inAccount = inAccount;
	}
	public Short getInAccountPro() {
		return inAccountPro;
	}
	public void setInAccountPro(Short inAccountPro) {
		this.inAccountPro = inAccountPro;
	}
	public String getInAccountName() {
		return inAccountName;
	}
	public void setInAccountName(String inAccountName) {
		this.inAccountName = inAccountName;
	}
	public String getInMediaId() {
		return inMediaId;
	}
	public void setInMediaId(String inMediaId) {
		this.inMediaId = inMediaId;
	}
	public Short getInMediaType() {
		return inMediaType;
	}
	public void setInMediaType(Short inMediaType) {
		this.inMediaType = inMediaType;
	}
	public String getOutAccount() {
		return outAccount;
	}
	public void setOutAccount(String outAccount) {
		this.outAccount = outAccount;
	}
	public Short getOutAccountPro() {
		return outAccountPro;
	}
	public void setOutAccountPro(Short outAccountPro) {
		this.outAccountPro = outAccountPro;
	}
	public String getOutAccountName() {
		return outAccountName;
	}
	public void setOutAccountName(String outAccountName) {
		this.outAccountName = outAccountName;
	}
	public String getOutMediaId() {
		return outMediaId;
	}
	public void setOutMediaId(String outMediaId) {
		this.outMediaId = outMediaId;
	}
	public Short getOutMediaType() {
		return outMediaType;
	}
	public void setOutMediaType(Short outMediaType) {
		this.outMediaType = outMediaType;
	}
	public String getBankId() {
		return bankId;
	}
	public void setBankId(String bankId) {
		this.bankId = bankId;
	}
	public String getPaySeq() {
		return paySeq;
	}
	public void setPaySeq(String paySeq) {
		this.paySeq = paySeq;
	}
	public String getStlDate() {
		return stlDate;
	}
	public void setStlDate(String stlDate) {
		this.stlDate = stlDate;
	}
	public Short getStlCheck() {
		return stlCheck;
	}
	public void setStlCheck(Short stlCheck) {
		this.stlCheck = stlCheck;
	}
	public String getAccCheckDate() {
		return accCheckDate;
	}
	public void setAccCheckDate(String accCheckDate) {
		this.accCheckDate = accCheckDate;
	}
	public Long getOrigAmt() {
		return origAmt;
	}
	public void setOrigAmt(Long origAmt) {
		this.origAmt = origAmt;
	}
	public Long getAmount() {
		return amount;
	}
	public void setAmount(Long amount) {
		this.amount = amount;
	}
	public Long getComAmt() {
		return comAmt;
	}
	public void setComAmt(Long comAmt) {
		this.comAmt = comAmt;
	}
	public String getAmtType() {
		return amtType;
	}
	public void setAmtType(String amtType) {
		this.amtType = amtType;
	}
	public Short getPayType() {
		return payType;
	}
	public void setPayType(Short payType) {
		this.payType = payType;
	}
	public Short getTranState() {
		return tranState;
	}
	public void setTranState(Short tranState) {
		this.tranState = tranState;
	}
	public String getTransCode() {
		return transCode;
	}
	public void setTransCode(String transCode) {
		this.transCode = transCode;
	}
	public String getTransDesc() {
		return transDesc;
	}
	public void setTransDesc(String transDesc) {
		this.transDesc = transDesc;
	}
	public String getMerCheckDate() {
		return merCheckDate;
	}
	public void setMerCheckDate(String merCheckDate) {
		this.merCheckDate = merCheckDate;
	}
	public Short getMerCheck() {
		return merCheck;
	}
	public void setMerCheck(Short merCheck) {
		this.merCheck = merCheck;
	}
	public String getPproductId() {
		return pproductId;
	}
	public void setPproductId(String pproductId) {
		this.pproductId = pproductId;
	}
	public String getBproductId() {
		return bproductId;
	}
	public void setBproductId(String bproductId) {
		this.bproductId = bproductId;
	}
	public String getAccountSeq() {
		return accountSeq;
	}
	public void setAccountSeq(String accountSeq) {
		this.accountSeq = accountSeq;
	}
	public Short getComAmtType() {
		return comAmtType;
	}
	public void setComAmtType(Short comAmtType) {
		this.comAmtType = comAmtType;
	}
	public String getMerTrace() {
		return merTrace;
	}
	public void setMerTrace(String merTrace) {
		this.merTrace = merTrace;
	}
	public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	public String getNotifyUrl() {
		return notifyUrl;
	}
	public void setNotifyUrl(String notifyUrl) {
		this.notifyUrl = notifyUrl;
	}
	public String getRetUrl() {
		return retUrl;
	}
	public void setRetUrl(String retUrl) {
		this.retUrl = retUrl;
	}
	public String getOriMerTrace() {
		return oriMerTrace;
	}
	public void setOriMerTrace(String oriMerTrace) {
		this.oriMerTrace = oriMerTrace;
	}
	public Short getAccessType() {
		return accessType;
	}
	public void setAccessType(Short accessType) {
		this.accessType = accessType;
	}
	public String getAccessName() {
		return accessName;
	}
	public void setAccessName(String accessName) {
		this.accessName = accessName;
	}
	public String getDepBankMerId() {
		return depBankMerId;
	}
	public void setDepBankMerId(String depBankMerId) {
		this.depBankMerId = depBankMerId;
	}
	public String getDepBankSeq() {
		return depBankSeq;
	}
	public void setDepBankSeq(String depBankSeq) {
		this.depBankSeq = depBankSeq;
	}
	public Short getDepBankTradeState() {
		return depBankTradeState;
	}
	public void setDepBankTradeState(Short depBankTradeState) {
		this.depBankTradeState = depBankTradeState;
	}
	public String getDepBankCheckDate() {
		return depBankCheckDate;
	}
	public void setDepBankCheckDate(String depBankCheckDate) {
		this.depBankCheckDate = depBankCheckDate;
	}
	public String getDepBankRetCode() {
		return depBankRetCode;
	}
	public void setDepBankRetCode(String depBankRetCode) {
		this.depBankRetCode = depBankRetCode;
	}
	public String getDepBankRetMsg() {
		return depBankRetMsg;
	}
	public void setDepBankRetMsg(String depBankRetMsg) {
		this.depBankRetMsg = depBankRetMsg;
	}
	
	public String getDepBankCheckTime() {
		return depBankCheckTime;
	}
	public void setDepBankCheckTime(String depBankCheckTime) {
		this.depBankCheckTime = depBankCheckTime;
	}
	@Override
	public String toString() {
		return "Trans [trace=" + trace + ", instId=" + instId + ", platDate=" + platDate + ", platTime=" + platTime
		        + ", funCode=" + funCode + ", busiId=" + busiId + ", tradeNo=" + tradeNo + ", oriTrace=" + oriTrace
		        + ", oriInstId=" + oriInstId + ", orderId=" + orderId + ", orderDate=" + orderDate + ", merId=" + merId
		        + ", inAccount=" + inAccount + ", inAccountPro=" + inAccountPro + ", inAccountName=" + inAccountName
		        + ", inMediaId=" + inMediaId + ", inMediaType=" + inMediaType + ", outAccount=" + outAccount
		        + ", outAccountPro=" + outAccountPro + ", outAccountName=" + outAccountName + ", outMediaId="
		        + outMediaId + ", outMediaType=" + outMediaType + ", bankId=" + bankId + ", paySeq=" + paySeq
		        + ", stlDate=" + stlDate + ", stlCheck=" + stlCheck + ", accCheckDate=" + accCheckDate + ", origAmt="
		        + origAmt + ", amount=" + amount + ", comAmt=" + comAmt + ", amtType=" + amtType + ", payType="
		        + payType + ", tranState=" + tranState + ", transCode=" + transCode + ", transDesc=" + transDesc
		        + ", merCheckDate=" + merCheckDate + ", merCheck=" + merCheck + ", pproductId=" + pproductId
		        + ", bproductId=" + bproductId + ", accountSeq=" + accountSeq + ", comAmtType=" + comAmtType
		        + ", merTrace=" + merTrace + ", remark=" + remark + ", notifyUrl=" + notifyUrl + ", retUrl=" + retUrl
		        + ", oriMerTrace=" + oriMerTrace  + ", inQryTransStates=" + inQryTransStates + ", accessType=" + accessType + ", accessName=" + accessName
		        + ", depBankMerId=" + depBankMerId + ", depBankSeq=" + depBankSeq + ", depBankTradeState="
		        + depBankTradeState + ", depBankCheckDate=" + depBankCheckDate + ", depBankCheckTime=" 
		        + depBankCheckTime  + ", depBankRetCode=" + depBankRetCode+ ", depBankRetMsg=" + depBankRetMsg + "]";
	}
}
